package com.lwc.service.impl;

import com.lwc.mapper.StockMapper;
import com.lwc.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl implements StockService {

    @Autowired
    StockMapper stockMapper;
    @Override
    public int reduceStock(int gid, int num) {
        int a=stockMapper.reduceStock(gid,num);
        return a;
    }
}
